<?php 

function new_feed_using_id_as_slug ($post_id, $post) {
	if (wp_is_post_revision($post_id)) {
		return false;
	}
	remove_action('save_post', 'new_feed_using_id_as_slug');
	wp_update_post(array('ID' => $post_id, 'post_name' => $post_id ));
	add_action('save_post', 'new_feed_using_id_as_slug');
}

add_action( 'save_post', 'new_feed_using_id_as_slug', 10, 2 );




